<?php
	session_set_cookie_params(0,'/','naiyumie.com');
	session_start();
include('./classes/class.Nmysql.php');
include('./classes/class.dbsession.php');
	define('MYSQL_HOST',		'localhost');
	define('MYSQL_USER',		'root');
	define('MYSQL_PASS',		'apmsetup');
	define('MYSQL_NAME',		'ggoggo_framework');
$db				= new Nmysql();
$dbsess			= new DBSession($db);
$usessinfo = $dbsess->sess_get();
echo $sesstime = $usessinfo['res']['session_expiry'];
echo "<br />";
//echo date("Y-m-d H:i:s", (time() - 86400));
echo $yesterday = time();
//echo $yesterday = date("Y-m-d H:i:s", mktime(date("H"),date("i"),date("s"),date("m")  , date("d")-1, date("Y")));
//echo strtotime("+1 day"), "\n";
echo "<br/>";
//echo strtotime($sesstime) - strtotime($yesterday);
echo $timehascome = $sesstime - $yesterday;
if($timehascome < 0) echo "destroy session";





//if($cfg[sesstime]*60<time()-$cfg[xtime]) echo "done";
?>